//
//  CouponTableViewCell.m
//  SXH
//
//  Created by Ryan on 16/6/14.
//  Copyright © 2016年 lyss. All rights reserved.
//

#import "CouponTableViewCell.h"

@implementation CouponTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor clearColor];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.couponView.layer.cornerRadius = 4;

    self.couponView.layer.borderColor = HEXCOLOR(0xdbdbdbd).CGColor;
    self.couponView.layer.borderWidth = 0.5;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(CouponModel *)model
{
    _model = model;
    self.couponName.text = model.coupon_name;
    self.limitMoney.text = model.use_remarks;
    self.limitTime.text = [NSString stringWithFormat:@"有效期:%@-%@",model.expire_start,model.expire_end];
    self.money.text = [NSString stringWithFormat:@"%zi",model.money.integerValue] ;
    
}

@end
